//package cn.nfwx.tv.fragment;
//
//import android.view.View;
//
//import org.greenrobot.eventbus.EventBus;
//
//import cn.nfwx.tv.R;
//import cn.nfwx.tv.adapter.HistoryAdapter;
//import cn.nfwx.tv.base.BaseFragment;
//import cn.nfwx.tv.controller.WatchRecordViewController;
//import cn.nfwx.tv.events.PlayEvents;
//import cn.nfwx.tv.model.WatchRecordModel;
//
///***
// * 观看记录
// * Created by zb.liu on 2017/10/30.
// */
//public class HistoryFragment extends BaseFragment implements HistoryAdapter.OnItemClickListener {
//
//    private final static String TAG_LOG = HistoryFragment.class.getSimpleName();
//    private WatchRecordViewController watchRecordViewController;
//    @Override
//    public View initView() {
//        View view =View.inflate(mContext,R.layout.fragment_history,null);
//        watchRecordViewController=new WatchRecordViewController(getActivity(),view);
//        watchRecordViewController.setPlayClickLisenter(this);
//        return view;
//    }
//
//    @Override
//    public void initData() {
//        super.initData();
//        watchRecordViewController.setNewData();
//    }
//
//
//    @Override
//    public void onItemClick(View view, int position, WatchRecordModel model) {
//        //VodPlayerActivity.startActivity(getContext(),"/query/"+model.getVid(),null,model.getName(),Integer.parseInt(model.getPosition()));
//        //EventBus.getDefault().post(new PlayEvents("/query/"+model.getVid(),null,model.getName(),Integer.parseInt(model.getPosition())));
//        //getActivity().finish();
//
//    }
//}
